<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>我的收藏</title>
    <link rel="stylesheet" href="../../css/aui.css">
    <link rel="stylesheet" href="../../css/main.css">
    <link rel="stylesheet" type="text/css" href="../../css/aui-flex.css" />
    <link rel="stylesheet" type="text/css" href="./css/collect.css" />

    <script type="text/javascript" src="../../js/base.js"></script>
</head>
<body>
<!--<header class="aui-bar aui-bar-nav aui-bar-top">-->
    <!--<a class="aui-pull-left aui-btn goBack" >-->
        <!--<span class="aui-iconfont aui-icon-left"></span>-->
    <!--</a>-->
    <!--<div class="aui-title">我的收藏</div>-->
<!--</header>-->

<section id="app" v-cloak>
    <div class="main" v-if="goodsInfoList.length>0">
        <div class="aui-flex-item-12 aui-border-l">
            <div class="aui-flex-col listBorder">
                <div class="aui-flex-item-6 listBorder"  v-for="goodsInfo in goodsInfoList"  v-on:click="goGoodsDetail(goodsInfo.goods_id)">
                    <img  v-bind:src="getImage(goodsInfo.goods_image)" style="background: #fff">
                    <div class="aui-bg-default aui-padded-t-5 shop_price ">
                        <h5 class=" aui-font-size-16 aui-padded-l-10" style="color:#271d1b">{{goodsInfo.goods_name}}</h5>
                        <div class="aui-padded-l-10 aui-font-size-12" style="width:7.5rem;overflow: hidden;white-space:nowrap;text-overflow: ellipsis;color:#abaeb5" >{{goodsInfo.goods_desc}}</div>
                        <h5 class=" aui-font-size-20 aui-padded-l-10 textColor"><span class="aui-font-size-12" style="position:relative;top:-0.35rem">￥</span>{{goodsInfo.shop_price}}</h5>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div v-if="goodsInfoList.length==0 && navigator && navigator.onLine === true">
        <div style="position:absolute;top:50%;left:50%;margin-top:-3rem;margin-left: -3rem">
            <img src="../../icon/noShouCang.png" alt="" style="width:6rem" >

        </div>
        <div class="aui-text-center"  style="position:absolute;top:50%;left:50%;margin-top:3.5rem;margin-left: -72px">还没有关注任何商品</div>
    </div>

    <div v-if="navigator && navigator.onLine === false" style="position:relative;" @click="goOnLine()">
        <div style="position:absolute;top:50%;left:50%;margin-top:0rem;margin-left: -3rem">
            <img src="../../icon/duanwang.png" alt="" style="width:6rem">
            <div class="aui-text-center aui-margin-t-15">暂无网络</div>
        </div>

        <div  class="aui-text-center textCol" style="position:absolute;top:50%;left:50%;margin-top:8rem;margin-left: -86px">请连接网络后,点击刷新</div>
    </div>
</section>
<script type="text/javascript" src="../../js/zepto.min.js"></script>
<script type="text/javascript" src="../../js/vue.min.js"></script>
<script type="text/javascript" src="../../js/api.js"></script>
<script type="text/javascript" src="../../js/aui-toast.js"></script>
<script type="text/javascript" src="./js/collect.js" ></script>

<script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script type="text/javascript" src="../../js/weixin.js" ></script>
</body>
</html>